package health_system.health_system.dto;

import health_system.health_system.entity.ChatRoom;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ChatRoomDTO {
    
    private Long id;
    private ChatRoom.ChatType chatType;
    private String groupName;
    private String groupAvatar;
    private Long creatorId;
    private String creatorName;
    private List<UserDTO> participants;
    private ChatMessageDTO lastMessage;
    private Long unreadCount;
    private LocalDateTime lastMessageTime;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    @Data
    public static class UserDTO {
        private Long id;
        private String username;
        private String fullName;
        private String avatarUrl;
    }
} 